package com.zhuoyue.common.core.domain;

/**
 * ClassName: AppUserDO <br/>
 * Description: 用户对象<br/>
 * date: 2019/2/13 16:46<br/>
 *
 * @author wjming<br />
 * @version 1.0
 */
public class AppUserDO {
    private Long id;

    private Long companyUserId;

    private String account;
    private String time;//这个是为了解决数据库时间重名问题特意加上
    private String password;

    private String nickName;

    private String avatar;

    private String token;

    private Integer sourceType;

    private String organizationCode;

    private String sourceId;
    private String count;

    private String createTime;

    private String modifyTime;

    private String tsbz;
    /**
     * 快速登录
     */
    private String openidWeiXin;//微信

    private String openidQQ;//qq

    private String Type;//快速登录类型0，微信 1，QQ


    private String phoneType;//此参数不参与数据库增删改查，只用于web界面list.jsp中的手机类型的效果展示

    public String getType() {
        return Type;
    }

    public void setType(String type) {
        Type = type;
    }

    public String getOpenidQQ() {
        return openidQQ;
    }

    public void setOpenidQQ(String openidQQ) {
        this.openidQQ = openidQQ;
    }

    public String getOpenidWeiXin() {
        return openidWeiXin;
    }

    public void setOpenidWeiXin(String openidWeiXin) {
        this.openidWeiXin = openidWeiXin;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCompanyUserId() {
        return companyUserId;
    }

    public void setCompanyUserId(Long companyUserId) {
        this.companyUserId = companyUserId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getSourceType() {
        return sourceType;
    }

    public void setSourceType(Integer sourceType) {
        this.sourceType = sourceType;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public String getCreateTime() {
        if (createTime != null) {
            return createTime.substring(0, 19);//由于取出数据库的时候后面会多出一个.0用于区分相同时间插入的情况，所以这边为了展示效果就取出前面19位
        } else {
            return createTime = null;
        }

    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        if (modifyTime != null) {
            return modifyTime.substring(0, 19);
        } else {
            return modifyTime = null;
        }

    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getTsbz() {
        return tsbz;
    }

    public void setTsbz(String tsbz) {
        this.tsbz = tsbz;
    }

    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }

    public String getPhoneType() {
        return phoneType;
    }

    public void setPhoneType(String phoneType) {
        this.phoneType = phoneType;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

}
